/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tmq.diancan.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 商品表实体类
 *
 * @author tangmqb
 * @since 2020-01-10
 */
@Data
@TableName("diancan_product_info")
@ApiModel(value = "DiancanProductInfo对象", description = "商品表")
public class DiancanProductInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "商品id")
    private Integer id;
    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    private String productName;
    /**
     * 外卖售价
     */
    @ApiModelProperty(value = "外卖售价")
    private BigDecimal takeoutSellPrice;
    /**
     * 外卖原价
     */
    @ApiModelProperty(value = "外卖原价")
    private BigDecimal takeoutOriginPrice;
    /**
     * 外卖会员价
     */
    @ApiModelProperty(value = "外卖会员价")
    private BigDecimal takeoutVipPrice;
    /**
     * 店内售价
     */
    @ApiModelProperty(value = "店内售价")
    private BigDecimal storeSellPrice;
    /**
     * 店内会员价
     */
    @ApiModelProperty(value = "店内会员价")
    private BigDecimal storeVipPrice;
    /**
     * 会员折扣价
     */
    @ApiModelProperty(value = "会员折扣价")
    private BigDecimal productVipDiscount;
    /**
     * 限购 仅限外卖和规格商品
     */
    @ApiModelProperty(value = "限购 仅限外卖和规格商品")
    private Integer productLimitSell;
    /**
     * 起售 仅限外卖和规格商品
     */
    @ApiModelProperty(value = "起售 仅限外卖和规格商品")
    private Integer productToSell;
    /**
     * 库存
     */
    @ApiModelProperty(value = "库存")
    private Integer productStock;
    /**
     * 无限库存 1 关闭 2 开启
     */
    @ApiModelProperty(value = "无限库存 1 关闭 2 开启")
    private Integer productStockLimit;
    /**
     * 商品销量
     */
    @ApiModelProperty(value = "商品销量")
    private Integer productSales;
    /**
     * 简介
     */
    @ApiModelProperty(value = "简介")
    private String productDescription;
    /**
     * 商品Logo
     */
    @ApiModelProperty(value = "商品Logo")
    private String productIcon;
    /**
     * 商品状态,0正常1下架
     */
    @ApiModelProperty(value = "商品状态,0正常1下架")
    private Integer productStatus;
    /**
     * 类目编号
     */
    @ApiModelProperty(value = "类目编号")
    private Integer categoryType;
    /**
     * 商品类型 0 外卖 1 店内 2 外卖+店内 
     */
    @ApiModelProperty(value = "商品类型 0 外卖 1 店内 2 外卖+店内 ")
    private Integer productType;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer categorySort;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
